// import qs from 'qs'
// axios
import request from '@/utils/open/request'
// home api

/**
 * ***********************************************************************************
 *  员工列表
 * ***********************************************************************************
 */
export const homeApi = {
  /**
   * 获取入职列表
   * @param {any} params
   */
  checklist (data, params) {
    const url = 'api/v1/Forms/checklist'
    return request.postForm(url, data, params)
  },
  /**
   * 保存入职信息
   * @param {any} params
   */
  save (data, params) {
    const url = 'api/v1/Forms/save'
    return request.postForm(url, data, params)
  },
  /**
   * 保存入职信息
   * @param {any} params
   */
  simple (data, params) {
    const url = 'api/DataProvider/ddl/simple'
    return request.postForm(url, data, params)
  },
  /**
   * 保存入职信息
   * @param {any} params
   */
  input (data, params) {
    const url = 'api/v1/Forms/input'
    return request.postForm(url, data, params)
  },
  /**
   * 保存入职信息
   * @param {any} params
   */
  persons (data, params) {
    const url = 'sys/persons'
    return request.postForm(url, data, params)
  }
}
